import com.grp6.game.ui.platform.ICell;
import com.grp6.game.ui.platform.IQuestionValidator;
import com.grp6.game.ui.platform.swing.SwingUIFactory;


public class Main implements IQuestionValidator {
		public static void main(String[] args) {
		new Main().run();
	}

	private void run() {
		SwingUIFactory fac = new SwingUIFactory();
		ICell cell00 = fac.createICell(0, 0);
		cell00.setTile("chess.blackTile");
		cell00.setSymbol("chess.blackKing");
		ICell cell10 = fac.createICell(1, 0);
		cell10.setTile("chess.whiteTile");
		cell10.setSymbol("chess.whiteKing");
		ICell cell20 = fac.createICell(2, 0);
		cell20.setTile("chess.whiteTile");
		cell20.setSymbol("chess.blackKing");
		/*IDialog dialog = fac.createIDialog();
		
		dialog.addQuestions("question [Y/N]?",this);
		dialog.addQuestions("question2 [Y/N]?",this);
		*/
		//dialog.display();
		
		//fac.cleanUp();
	}

	@Override
	public boolean isValid(String question, String answer) {
		boolean valid = answer!=null && (answer.equals("Y") || answer.equals("N")) ;
		return valid;
	}
}
